/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kn.cstf2.global.db.props;

import java.io.FileInputStream;
import java.io.IOException;
import java.net.URL;
import java.util.Properties;

/**
 *
 * @author user1
 */
public class Propiedades {
    
    public static Properties obtenerPropiedades(String rutaP)
    {
        Properties propiedades = new Properties();
        
        try{
            URL url =  Propiedades.class.getResource(rutaP);
            if(url!=null){
                propiedades.load(url.openStream());
            }else
                return null;
        }
        catch(IOException ex)
        {
         System.out.println(ex.toString());   
        }
        return propiedades;
    }
    
}
